Time and Date Functions

The SETTIME command is used to set the system time and date used by the HSM for the audit log entries. The user should use this command to adjust the time for the local timezone. The time and date can be queried using the GETTIME command.

Set the Time and Date

Command: SETTIME (Set the time). The HSM must be in the Secure Authorised state.

Function:     To set the system time and date used by the HSM.

Inputs:        The time in hours and minutes.

                   The date in year, month and day.

Outputs:     Text messages, as in the example below.

Errors:        Command only allowed from secure-authorised – the HSM is not in secure state, is not in authorised state, or both.

Response invalid. Re-enter: an invalid value has been entered.

Example:

Secure-AUTH> settime <Return>

Enter hours [HH](24 hour format): 10 <Return>

Enter minutes [MM]: 08

Enter year [YYYY] (2002 or above): 2002

Enter month [MM]: 10

Enter day [DD]: 14

The system time has been modified.

Query the Time and Date

Command: GETTIME (Get the time). Can be used in online, offline or secure state.

Function:     To query the system time and date.

Inputs:        None.

Outputs:     The year, month, date and day of the week.

                   The time in hours, minutes and seconds.

Errors:        None.

Example:

Online> gettime <Return>

System date and time: Mon Oct 14 10:08:19 2002